<?php if (count($news) > 0):?>
<div class="l_top">Thông tin nổi bật</div>
<div class="spp1">
    <div id="slider2">
        <?php 
            foreach ($news as $new):
                $uri = get_base_url() . url_title(trim($new->category), 'dash', TRUE) . '/' . url_title(trim($new->title), 'dash', TRUE) . '-n' . $new->cat_id . '-' . $new->id;
                $thumbnail = ($new->thumbnail != '') ? $new->thumbnail : '/images/noimage.jpg';
        
        ?>
        <div class="slide">
            <a href="<?php echo $uri;?>" class="news_slide">
                <img src="<?php echo $new->thumbnail;?>">
            </a>
            <a href="<?php echo $uri;?>" class="news_slide_1">
                <?php echo shorten_str($new->title, MAXLENGHT_LASTEST_NEWS_DESCRIPTION);?>
            </a>
        </div>
        <div class="clearfix"></div>
        <?php endforeach;?>
    </div>
</div>
<?php endif;?>